Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ansible][qemu-user-static] Force automount to mount /proc/sys/fs/bin… #152

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

chantra
Copy link
Collaborator

@chantra chantra commented Nov 14, 2024

…fmt_misc

systemd is kind of taking over that directory. While Ubuntu seems to handle this just right, Amazon Linux 2 does not, essentially, the directory is handled by automount, but is not mounted and onl;y ends up mounted once we try to access it with ls or such. This gets us to end up in a situation where qemu-user-static has ran, but its config gets overridden.

I did not manage to get this to work properly on AL2, but we can trick it by "pre-warming" the mount by running a ls /proc/sys/fs/binfmt_misc as a pre-exec-start step (ignoring failures).

Tried this on Ubuntu host, and there were still happy.
Signed-off-by: Manu Bretelle [email protected]

…fmt_misc

systemd is kind of taking over that directory. While Ubuntu seems to
handle this just right, Amazon Linux 2 does not, essentially, the
directory is handled by automount, but is not mounted and onl;y ends up
mounted once we try to access it with `ls` or such.
This gets us to end up in a situation where qemu-user-static has ran,
but its config gets overridden.

I did not manage to get this to work properly on AL2, but we can trick
it by "pre-warming" the mount by running a `ls /proc/sys/fs/binfmt_misc`
as a pre-exec-start step (ignoring failures).

Tried this on Ubuntu host, and there were still happy.
Signed-off-by: Manu Bretelle <[email protected]>
@chantra chantra merged commit 1ce74ef into libbpf:main Nov 14, 2024
6 checks passed
@chantra chantra deleted the qemu-binfmt branch November 14, 2024 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant